home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.12 Dec 95 / Frontier CGIs / CGI Framework 3.0.1 / Install files / utilities.processMacros / utilities.processMacros.rsrc
MacOS Resource Fork  |  1995-10-30  |  5.7 KB  |  [2CLK/LAND]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacOS Resource Fork (archive/rsrc).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Resource Fork (archive/rsrc) magic Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert BeOS Resource Data (archive/beOSResourceData) ext Unsupported
1% dexvert AppleSingle (archive/appleSingle) fallback Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file AppleDouble encoded Macintosh file default
99% file data default
66% TrID Mac AppleDouble encoded default
33% TrID TTComp archive compressed (bin-2K) default (weak)
100% siegfried fmt/503 AppleDouble Resource Fork (2) default
100% lsar AppleSingle default


id metadata
keyvalue
macFileType[2CLK]
macFileCreator[LAND]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| 16 65 32 43 4c 4b 4c 41 | 4e 44 01 00 00 00 00 00 |.e2CLKLA|ND......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | 15 be 00 00 14 be 00 00 |........|........|
|00000060| 00 a7 01 86 00 b9 62 8c | 03 ea ff ff 00 00 01 f2 |......b.|........|
|00000070| 00 b9 62 38 03 e9 ff ff | 00 00 02 5e 00 b9 63 3c |..b8....|...^..c<|
|00000080| 13 50 17 75 74 69 6c 69 | 74 69 65 73 2e 70 72 6f |.P.utili|ties.pro|
|00000090| 63 65 73 73 4d 61 63 72 | 6f 73 02 00 00 00 32 43 |cessMacr|os....2C|
|000000a0| 4c 4b 00 00 32 43 4c 4b | 4c 41 4e 44 01 00 00 00 |LK..2CLK|LAND....|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 ac b9 95 3b | 00 00 00 00 00 00 16 65 |.......;|.......e|
|000000d0| 4f 6d 00 00 00 32 53 54 | 52 23 00 01 00 3e 4d 45 |Om...2ST|R#...>ME|
|000000e0| 4e 55 00 00 00 56 53 5f | 57 50 00 01 00 62 70 6f |NU...VS_|WP...bpo|
|000000f0| 70 64 00 00 00 7a 64 4a | 76 55 00 01 00 86 00 01 |pd...zdJ|vU......|
|00000100| 00 00 20 00 00 00 00 00 | 00 00 03 e8 00 14 00 00 |.. .....|........|
|00000110| 00 95 00 b9 66 0c 03 84 | ff ff 20 00 00 3d 00 b9 |....f...|.. ..=..|
|00000120| 66 14 04 b2 ff ff 00 00 | 00 0b 00 b9 65 68 09 fe |f.......|....eh..|
|00000130| 00 1a 00 00 00 79 00 b9 | 61 b4 41 a7 00 23 00 00 |.....y..|a.A..#..|
|00000140| 00 87 00 00 00 00 03 e9 | ff ff 00 00 01 86 00 b9 |........|........|
|00000150| 61 34 00 00 00 06 05 34 | 2e 30 62 31 00 00 00 09 |a4.....4|.0b1....|
|00000160| 08 46 72 6f 6e 74 69 65 | 72 00 00 00 f0 00 01 04 |.Frontie|r.......|
|00000170| 4a 00 02 00 00 00 0c 00 | 00 00 68 00 00 02 00 00 |J.......|..h.....|
|00000180| 0f 06 47 65 6e 65 76 61 | 00 00 00 00 00 00 00 00 |..Geneva|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 0c 00 00 00 | 00 00 00 00 00 00 00 06 |........|........|
|000001b0| 54 00 00 a4 d0 77 90 ac | b9 95 3b 00 00 00 09 00 |T....w..|..;.....|
|000001c0| 00 00 a0 00 32 01 04 02 | 12 4c 41 4e 44 00 00 00 |....2...|.LAND...|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 6f 6e 20 63 61 6c 6c |........|.on call|
|000001f0| 69 6d 70 6f 72 74 65 72 | 20 28 70 61 74 68 29 20 |importer| (path) |
|00000200| c7 74 68 69 73 20 73 63 | 72 69 70 74 20 69 73 20 |.this sc|ript is |
|00000210| 73 61 76 65 64 20 77 69 | 74 68 20 61 6c 6c 20 65 |saved wi|th all e|
|00000220| 78 70 6f 72 74 65 64 20 | 6f 62 6a 65 63 74 73 0d |xported |objects.|
|00000230| 09 72 65 74 75 72 6e 20 | 28 65 78 70 6f 72 74 2e |.return |(export.|
|00000240| 69 6d 70 6f 72 74 65 72 | 20 28 70 61 74 68 29 29 |importer| (path))|
|00000250| 0d 80 00 00 00 00 00 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 0d 0c 63 61 6c 6c 69 6d | 70 6f 72 74 65 72 00 00 |..callim|porter..|
|00000270| 00 02 01 31 00 00 13 98 | 73 63 70 74 00 01 04 4a |...1....|scpt...J|
|00000280| 00 02 00 00 02 22 00 00 | 10 f6 00 11 02 00 00 0f |....."..|........|
|00000290| 06 47 65 6e 65 76 61 00 | 00 00 00 00 00 00 00 00 |.Geneva.|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 09 00 00 00 00 | 00 1b 00 00 00 00 06 54 |........|.......T|
|000002c0| 00 00 ac 41 81 c9 ac b9 | 95 3c 00 00 00 25 00 00 |...A....|.<...%..|
|000002d0| 00 29 00 08 01 dd 02 5a | 4c 41 4e 44 00 00 00 00 |.).....Z|LAND....|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 6f 6e 20 70 72 6f 63 65 |........|on proce|
|00000300| 73 73 4d 61 63 72 6f 73 | 20 28 74 65 78 74 2c 20 |ssMacros| (text, |
|00000310| 61 64 72 56 61 72 20 3d | 20 6e 69 6c 29 0d 09 74 |adrVar =| nil)..t|
|00000320| 72 79 0d 09 09 77 69 74 | 68 20 77 65 62 53 65 72 |ry...wit|h webSer|
|00000330| 76 65 72 2e 6d 61 63 72 | 6f 73 0d 09 09 09 6c 6f |ver.macr|os....lo|
|00000340| 63 61 6c 20 28 74 61 67 | 20 3d 20 22 3c 21 2d 2d |cal (tag| = "<!--|
|00000350| 23 22 29 0d 09 09 09 69 | 66 20 64 65 66 69 6e 65 |#")....i|f define|
|00000360| 64 20 28 61 64 72 56 61 | 72 5e 29 20 c7 20 65 76 |d (adrVa|r^) . ev|
|00000370| 61 6c 75 61 74 65 20 6d | 61 63 72 6f 20 77 69 74 |aluate m|acro wit|
|00000380| 68 20 6f 70 74 69 6f 6e | 61 6c 20 74 61 62 6c 65 |h option|al table|
|00000390| 20 6f 66 20 70 61 72 61 | 6d 73 0d 09 09 09 09 77 | of para|ms.....w|
|000003a0| 69 74 68 20 61 64 72 56 | 61 72 5e 20 20 20 c7 69 |ith adrV|ar^ .i|
|000003b0| 74 65 6d 73 20 69 6e 20 | 61 64 72 76 61 72 20 74 |tems in |adrvar t|
|000003c0| 61 62 6c 65 20 6f 76 65 | 72 72 69 64 65 20 69 74 |able ove|rride it|
|000003d0| 65 6d 73 20 69 6e 20 6d | 61 63 72 6f 73 20 74 61 |ems in m|acros ta|
|000003e0| 62 6c 65 0d 09 09 09 09 | 09 69 66 20 73 74 72 69 |ble.....|.if stri|
|000003f0| 6e 67 2e 70 61 74 74 65 | 72 6e 4d 61 74 63 68 20 |ng.patte|rnMatch |
|00000400| 28 74 61 67 20 2c 20 74 | 65 78 74 20 29 20 3c 20 |(tag , t|ext ) < |
|00000410| 31 0d 09 09 09 09 09 09 | 72 65 74 75 72 6e 20 28 |1.......|return (|
|00000420| 74 65 78 74 29 20 c7 6e | 6f 20 6d 61 63 72 6f 73 |text) .n|o macros|
|00000430| 0d 09 09 09 09 09 6c 6f | 63 61 6c 20 28 69 2c 20 |......lo|cal (i, |
|00000440| 7a 2c 20 77 6f 72 6b 43 | 6f 70 79 29 0d 09 09 09 |z, workC|opy)....|
|00000450| 09 09 77 6f 72 6b 43 6f | 70 79 20 3d 20 73 74 72 |..workCo|py = str|
|00000460| 69 6e 67 2e 72 65 70 6c | 61 63 65 41 6c 6c 20 28 |ing.repl|aceAll (|
|00000470| 74 65 78 74 2c 20 74 61 | 67 2c 20 22 c6 22 29 20 |text, ta|g, ".") |
|00000480| c7 20 63 68 61 6e 67 65 | 20 74 6f 20 6f 6e 65 20 |. change| to one |
|00000490| 63 68 61 72 20 66 6f 72 | 20 73 74 72 69 6e 67 2e |char for| string.|
|000004a0| 6e 74 68 46 69 65 6c 64 | 0d 09 09 09 09 09 66 6f |nthField|......fo|
|000004b0| 72 20 69 20 3d 20 32 20 | 74 6f 20 73 74 72 69 6e |r i = 2 |to strin|
|000004c0| 67 2e 63 6f 75 6e 74 46 | 69 65 6c 64 73 20 28 77 |g.countF|ields (w|
|000004d0| 6f 72 6b 43 6f 70 79 2c | 20 22 c6 22 29 0d 09 09 |orkCopy,| ".")...|
|000004e0| 09 09 09 09 6c 6f 63 61 | 6c 20 28 74 65 6d 70 53 |....loca|l (tempS|
|000004f0| 74 72 69 6e 67 20 3d 20 | 73 74 72 69 6e 67 2e 6e |tring = |string.n|
|00000500| 74 68 46 69 65 6c 64 20 | 28 77 6f 72 6b 43 6f 70 |thField |(workCop|
|00000510| 79 2c 20 22 c6 22 2c 20 | 69 29 2c 20 6d 61 63 72 |y, ".", |i), macr|
|00000520| 6f 53 74 72 69 6e 67 20 | 3d 20 22 22 29 0d 09 09 |oString |= "")...|
|00000530| 09 09 09 09 74 65 6d 70 | 53 74 72 69 6e 67 20 3d |....temp|String =|
|00000540| 20 73 74 72 69 6e 67 2e | 72 65 70 6c 61 63 65 41 | string.|replaceA|
|00000550| 6c 6c 20 28 74 65 6d 70 | 53 74 72 69 6e 67 2c 20 |ll (temp|String, |
|00000560| 22 5c 5c 5c 22 22 2c 20 | 22 c6 22 29 20 c7 72 65 |"\\\"", |".") .re|
|00000570| 70 6c 61 63 65 20 65 73 | 63 61 70 65 64 20 71 75 |place es|caped qu|
|00000580| 6f 74 65 73 0d 09 09 09 | 09 09 09 66 6f 72 20 7a |otes....|...for z|
|00000590| 20 3d 20 31 20 74 6f 20 | 73 74 72 69 6e 67 2e 63 | = 1 to |string.c|
|000005a0| 6f 75 6e 74 46 69 65 6c | 64 73 20 28 74 65 6d 70 |ountFiel|ds (temp|
|000005b0| 53 74 72 69 6e 67 2c 20 | 22 5c 22 22 29 20 c7 62 |String, |"\"") .b|
|000005c0| 75 69 6c 64 20 6d 61 63 | 72 6f 73 74 72 69 6e 67 |uild mac|rostring|
|000005d0| 2c 20 69 67 6e 6f 72 69 | 6e 67 20 74 68 69 6e 67 |, ignori|ng thing|
|000005e0| 73 20 62 65 74 77 65 65 | 6e 20 71 75 6f 74 65 73 |s betwee|n quotes|
|000005f0| 0d 09 09 09 09 09 09 09 | 6c 6f 63 61 6c 20 28 74 |........|local (t|
|00000600| 65 73 74 53 74 72 69 6e | 67 20 3d 20 73 74 72 69 |estStrin|g = stri|
|00000610| 6e 67 2e 6e 74 68 46 69 | 65 6c 64 20 28 74 65 6d |ng.nthFi|eld (tem|
|00000620| 70 53 74 72 69 6e 67 2c | 20 22 5c 22 22 2c 20 7a |pString,| "\"", z|
|00000630| 29 29 0d 09 09 09 09 09 | 09 09 69 66 20 28 6d 6f |))......|..if (mo|
|00000640| 64 20 28 7a 2c 20 32 29 | 29 20 3e 20 30 20 c7 20 |d (z, 2)|) > 0 . |
|00000650| 74 65 73 74 20 65 76 65 | 6e 2f 6f 64 64 0d 09 09 |test eve|n/odd...|
|00000660| 09 09 09 09 09 09 69 66 | 20 73 74 72 69 6e 67 2e |......if| string.|
|00000670| 70 61 74 74 65 72 6e 4d | 61 74 63 68 20 28 22 2d |patternM|atch ("-|
|00000680| 2d 3e 22 2c 20 74 65 73 | 74 53 74 72 69 6e 67 29 |->", tes|tString)|
|00000690| 20 3e 20 30 0d 09 09 09 | 09 09 09 09 09 09 74 65 | > 0....|......te|
|000006a0| 73 74 53 74 72 69 6e 67 | 20 3d 20 73 74 72 69 6e |stString| = strin|
|000006b0| 67 2e 64 65 6c 65 74 65 | 20 28 74 65 73 74 53 74 |g.delete| (testSt|
|000006c0| 72 69 6e 67 2c 20 73 74 | 72 69 6e 67 2e 70 61 74 |ring, st|ring.pat|
|000006d0| 74 65 72 6e 4d 61 74 63 | 68 20 28 22 2d 2d 3e 22 |ternMatc|h ("-->"|
|000006e0| 2c 20 74 65 73 74 53 74 | 72 69 6e 67 29 2c 20 73 |, testSt|ring), s|
|000006f0| 69 7a 65 4f 66 20 28 74 | 65 73 74 53 74 72 69 6e |izeOf (t|estStrin|
|00000700| 67 29 29 0d 09 09 09 09 | 09 09 09 09 09 6d 61 63 |g)).....|.....mac|
|00000710| 72 6f 53 74 72 69 6e 67 | 20 3d 20 6d 61 63 72 6f |roString| = macro|
|00000720| 53 74 72 69 6e 67 20 2b | 20 74 65 73 74 53 74 72 |String +| testStr|
|00000730| 69 6e 67 0d 09 09 09 09 | 09 09 09 09 09 62 72 65 |ing.....|.....bre|
|00000740| 61 6b 20 c7 6c 6f 6f 70 | 20 65 6e 64 73 20 77 68 |ak .loop| ends wh|
|00000750| 65 6e 20 77 65 20 67 65 | 74 20 74 6f 20 61 20 3e |en we ge|t to a >|
|00000760| 20 6f 75 74 73 69 64 65 | 20 6f 66 20 71 75 6f 74 | outside| of quot|
|00000770| 65 73 0d 09 09 09 09 09 | 09 09 09 6d 61 63 72 6f |es......|...macro|
|00000780| 53 74 72 69 6e 67 20 3d | 20 6d 61 63 72 6f 53 74 |String =| macroSt|
|00000790| 72 69 6e 67 20 2b 20 74 | 65 73 74 53 74 72 69 6e |ring + t|estStrin|
|000007a0| 67 20 2b 20 22 5c 22 22 | 0d 09 09 09 09 09 09 09 |g + "\""|........|
|000007b0| 65 6c 73 65 0d 09 09 09 | 09 09 09 09 09 6d 61 63 |else....|.....mac|
|000007c0| 72 6f 53 74 72 69 6e 67 | 20 3d 20 6d 61 63 72 6f |roString| = macro|
|000007d0| 53 74 72 69 6e 67 20 2b | 20 74 65 73 74 53 74 72 |String +| testStr|
|000007e0| 69 6e 67 20 2b 20 22 5c | 22 22 0d 09 09 09 09 09 |ing + "\|""......|
|000007f0| 09 6d 61 63 72 6f 53 74 | 72 69 6e 67 20 3d 20 73 |.macroSt|ring = s|
|00000800| 74 72 69 6e 67 2e 72 65 | 70 6c 61 63 65 41 6c 6c |tring.re|placeAll|
|00000810| 20 28 6d 61 63 72 6f 53 | 74 72 69 6e 67 20 2c 20 | (macroS|tring , |
|00000820| 22 c6 22 2c 20 22 5c 5c | 5c 22 22 29 20 c7 70 75 |".", "\\|\"") .pu|
|00000830| 74 20 65 73 63 61 70 65 | 64 20 71 75 6f 74 65 73 |t escape|d quotes|
|00000840| 20 62 61 63 6b 0d 09 09 | 09 09 09 09 69 66 20 73 | back...|....if s|
|00000850| 74 72 69 6e 67 2e 70 61 | 74 74 65 72 6e 4d 61 74 |tring.pa|tternMat|
|00000860| 63 68 20 28 22 28 22 2c | 20 6d 61 63 72 6f 53 74 |ch ("(",| macroSt|
|00000870| 72 69 6e 67 29 20 3c 20 | 31 20 c7 20 6e 6f 20 70 |ring) < |1 . no p|
|00000880| 61 72 65 6e 74 68 65 73 | 65 73 2c 20 6e 6f 74 20 |arenthes|es, not |
|00000890| 61 20 73 63 72 69 70 74 | 20 0d 09 09 09 09 09 09 |a script| .......|
|000008a0| 09 69 66 20 64 65 66 69 | 6e 65 64 20 28 6d 61 63 |.if defi|ned (mac|
|000008b0| 72 6f 53 74 72 69 6e 67 | 5e 29 0d 09 09 09 09 09 |roString|^)......|
|000008c0| 09 09 09 63 61 73 65 20 | 74 79 70 65 4f 66 20 28 |...case |typeOf (|
|000008d0| 6d 61 63 72 6f 53 74 72 | 69 6e 67 5e 29 0d 09 09 |macroStr|ing^)...|
|000008e0| 09 09 09 09 09 09 09 73 | 74 72 69 6e 67 54 79 70 |.......s|tringTyp|
|000008f0| 65 0d 09 09 09 09 09 09 | 09 09 09 09 74 65 78 74 |e.......|....text|
|00000900| 20 3d 20 73 74 72 69 6e | 67 2e 72 65 70 6c 61 63 | = strin|g.replac|
|00000910| 65 41 6c 6c 20 28 74 65 | 78 74 2c 20 74 61 67 20 |eAll (te|xt, tag |
|00000920| 2b 20 6d 61 63 72 6f 53 | 74 72 69 6e 67 20 2b 20 |+ macroS|tring + |
|00000930| 22 2d 2d 3e 22 2c 20 6d | 61 63 72 6f 53 74 72 69 |"-->", m|acroStri|
|00000940| 6e 67 5e 29 0d 09 09 09 | 09 09 09 09 09 09 77 70 |ng^)....|......wp|
|00000950| 54 65 78 74 54 79 70 65 | 0d 09 09 09 09 09 09 09 |TextType|........|
|00000960| 09 09 09 74 65 78 74 20 | 3d 20 73 74 72 69 6e 67 |...text |= string|
|00000970| 2e 72 65 70 6c 61 63 65 | 41 6c 6c 20 28 74 65 78 |.replace|All (tex|
|00000980| 74 2c 20 74 61 67 20 2b | 20 6d 61 63 72 6f 53 74 |t, tag +| macroSt|
|00000990| 72 69 6e 67 20 2b 20 22 | 2d 2d 3e 22 2c 20 73 74 |ring + "|-->", st|
|000009a0| 72 69 6e 67 20 28 6d 61 | 63 72 6f 53 74 72 69 6e |ring (ma|croStrin|
|000009b0| 67 5e 29 29 0d 09 09 09 | 09 09 09 09 65 6c 73 65 |g^))....|....else|
|000009c0| 0d 09 09 09 09 09 09 09 | 09 69 66 20 77 65 62 53 |........|.if webS|
|000009d0| 65 72 76 65 72 2e 70 72 | 65 66 65 72 65 6e 63 65 |erver.pr|eference|
|000009e0| 73 2e 72 65 6d 6f 76 65 | 4d 61 63 72 6f 73 0d 09 |s.remove|Macros..|
|000009f0| 09 09 09 09 09 09 09 09 | 74 65 78 74 20 3d 20 73 |........|text = s|
|00000a00| 74 72 69 6e 67 2e 72 65 | 70 6c 61 63 65 41 6c 6c |tring.re|placeAll|
|00000a10| 20 28 74 65 78 74 2c 20 | 74 61 67 20 2b 20 6d 61 | (text, |tag + ma|
|00000a20| 63 72 6f 53 74 72 69 6e | 67 20 2b 20 22 2d 2d 3e |croStrin|g + "-->|
|00000a30| 22 2c 20 22 22 29 0d 09 | 09 09 09 09 09 65 6c 73 |", "")..|.....els|
|00000a40| 65 20 c7 20 69 74 20 68 | 61 73 20 70 61 72 65 6e |e . it h|as paren|
|00000a50| 74 68 65 73 65 73 20 61 | 6e 64 20 77 69 6c 6c 20 |theses a|nd will |
|00000a60| 62 65 20 64 65 61 6c 74 | 20 77 69 74 68 20 6c 69 |be dealt| with li|
|00000a70| 6b 65 20 61 20 73 63 72 | 69 70 74 0d 09 09 09 09 |ke a scr|ipt.....|
|00000a80| 09 09 09 74 72 79 0d 09 | 09 09 09 09 09 09 09 6c |...try..|.......l|
|00000a90| 6f 63 61 6c 20 28 65 76 | 61 6c 75 61 74 69 6f 6e |ocal (ev|aluation|
|00000aa0| 53 74 72 69 6e 67 20 3d | 20 73 74 72 69 6e 67 20 |String =| string |
|00000ab0| 28 65 76 61 6c 75 61 74 | 65 20 28 6d 61 63 72 6f |(evaluat|e (macro|
|00000ac0| 53 74 72 69 6e 67 29 29 | 29 0d 09 09 09 09 09 09 |String))|).......|
|00000ad0| 09 09 74 65 78 74 20 3d | 20 73 74 72 69 6e 67 2e |..text =| string.|
|00000ae0| 72 65 70 6c 61 63 65 20 | 28 74 65 78 74 2c 20 74 |replace |(text, t|
|00000af0| 61 67 20 2b 20 6d 61 63 | 72 6f 53 74 72 69 6e 67 |ag + mac|roString|
|00000b00| 20 2b 20 22 2d 2d 3e 22 | 2c 20 65 76 61 6c 75 61 | + "-->"|, evalua|
|00000b10| 74 69 6f 6e 53 74 72 69 | 6e 67 29 0d 09 09 09 09 |tionStri|ng).....|
|00000b20| 09 09 09 65 6c 73 65 0d | 09 09 09 09 09 09 09 09 |...else.|........|
|00000b30| 69 66 20 77 65 62 53 65 | 72 76 65 72 2e 70 72 65 |if webSe|rver.pre|
|00000b40| 66 65 72 65 6e 63 65 73 | 2e 72 65 6d 6f 76 65 4d |ferences|.removeM|
|00000b50| 61 63 72 6f 73 0d 09 09 | 09 09 09 09 09 09 09 74 |acros...|.......t|
|00000b60| 65 78 74 20 3d 20 73 74 | 72 69 6e 67 2e 72 65 70 |ext = st|ring.rep|
|00000b70| 6c 61 63 65 41 6c 6c 20 | 28 74 65 78 74 2c 20 74 |laceAll |(text, t|
|00000b80| 61 67 20 2b 20 6d 61 63 | 72 6f 53 74 72 69 6e 67 |ag + mac|roString|
|00000b90| 20 2b 20 22 2d 2d 3e 22 | 2c 20 22 22 29 0d 09 09 | + "-->"|, "")...|
|00000ba0| 09 65 6c 73 65 20 c7 20 | 73 61 6d 65 20 74 68 69 |.else . |same thi|
|00000bb0| 6e 67 20 77 69 74 68 6f | 75 74 20 6f 70 74 69 6f |ng witho|ut optio|
|00000bc0| 6e 61 6c 20 74 61 62 6c | 65 20 6f 66 20 70 61 72 |nal tabl|e of par|
|00000bd0| 61 6d 73 0d 09 09 09 09 | 69 66 20 73 74 72 69 6e |ams.....|if strin|
|00000be0| 67 2e 70 61 74 74 65 72 | 6e 4d 61 74 63 68 20 28 |g.patter|nMatch (|
|00000bf0| 74 61 67 20 2c 20 74 65 | 78 74 20 29 20 3c 20 31 |tag , te|xt ) < 1|
|00000c00| 0d 09 09 09 09 09 72 65 | 74 75 72 6e 20 28 74 65 |......re|turn (te|
|00000c10| 78 74 29 20 c7 6e 6f 20 | 6d 61 63 72 6f 73 0d 09 |xt) .no |macros..|
|00000c20| 09 09 09 6c 6f 63 61 6c | 20 28 69 2c 20 7a 2c 20 |...local| (i, z, |
|00000c30| 77 6f 72 6b 43 6f 70 79 | 29 0d 09 09 09 09 77 6f |workCopy|).....wo|
|00000c40| 72 6b 43 6f 70 79 20 3d | 20 73 74 72 69 6e 67 2e |rkCopy =| string.|
|00000c50| 72 65 70 6c 61 63 65 41 | 6c 6c 20 28 74 65 78 74 |replaceA|ll (text|
|00000c60| 2c 20 74 61 67 2c 20 22 | c6 22 29 20 c7 20 63 68 |, tag, "|.") . ch|
|00000c70| 61 6e 67 65 20 74 6f 20 | 6f 6e 65 20 63 68 61 72 |ange to |one char|
|00000c80| 20 66 6f 72 20 73 74 72 | 69 6e 67 2e 6e 74 68 46 | for str|ing.nthF|
|00000c90| 69 65 6c 64 0d 09 09 09 | 09 66 6f 72 20 69 20 3d |ield....|.for i =|
|00000ca0| 20 32 20 74 6f 20 73 74 | 72 69 6e 67 2e 63 6f 75 | 2 to st|ring.cou|
|00000cb0| 6e 74 46 69 65 6c 64 73 | 20 28 77 6f 72 6b 43 6f |ntFields| (workCo|
|00000cc0| 70 79 2c 20 22 c6 22 29 | 0d 09 09 09 09 09 6c 6f |py, ".")|......lo|
|00000cd0| 63 61 6c 20 28 74 65 6d | 70 53 74 72 69 6e 67 20 |cal (tem|pString |
|00000ce0| 3d 20 73 74 72 69 6e 67 | 2e 6e 74 68 46 69 65 6c |= string|.nthFiel|
|00000cf0| 64 20 28 77 6f 72 6b 43 | 6f 70 79 2c 20 22 c6 22 |d (workC|opy, "."|
|00000d00| 2c 20 69 29 2c 20 6d 61 | 63 72 6f 53 74 72 69 6e |, i), ma|croStrin|
|00000d10| 67 20 3d 20 22 22 29 0d | 09 09 09 09 09 66 6f 72 |g = "").|.....for|
|00000d20| 20 7a 20 3d 20 31 20 74 | 6f 20 73 74 72 69 6e 67 | z = 1 t|o string|
|00000d30| 2e 63 6f 75 6e 74 46 69 | 65 6c 64 73 20 28 74 65 |.countFi|elds (te|
|00000d40| 6d 70 53 74 72 69 6e 67 | 2c 20 22 5c 22 22 29 20 |mpString|, "\"") |
|00000d50| c7 62 75 69 6c 64 20 6d | 61 63 72 6f 73 74 72 69 |.build m|acrostri|
|00000d60| 6e 67 2c 20 69 67 6e 6f | 72 69 6e 67 20 74 68 69 |ng, igno|ring thi|
|00000d70| 6e 67 73 20 62 65 74 77 | 65 65 6e 20 71 75 6f 74 |ngs betw|een quot|
|00000d80| 65 73 0d 09 09 09 09 09 | 09 6c 6f 63 61 6c 20 28 |es......|.local (|
|00000d90| 74 65 73 74 53 74 72 69 | 6e 67 20 3d 20 73 74 72 |testStri|ng = str|
|00000da0| 69 6e 67 2e 6e 74 68 46 | 69 65 6c 64 20 28 74 65 |ing.nthF|ield (te|
|00000db0| 6d 70 53 74 72 69 6e 67 | 2c 20 22 5c 22 22 2c 20 |mpString|, "\"", |
|00000dc0| 7a 29 29 0d 09 09 09 09 | 09 09 69 66 20 28 6d 6f |z)).....|..if (mo|
|00000dd0| 64 20 28 7a 2c 20 32 29 | 29 20 3e 20 30 20 c7 20 |d (z, 2)|) > 0 . |
|00000de0| 74 65 73 74 20 65 76 65 | 6e 2f 6f 64 64 0d 09 09 |test eve|n/odd...|
|00000df0| 09 09 09 09 09 69 66 20 | 73 74 72 69 6e 67 2e 70 |.....if |string.p|
|00000e00| 61 74 74 65 72 6e 4d 61 | 74 63 68 20 28 22 2d 2d |atternMa|tch ("--|
|00000e10| 3e 22 2c 20 74 65 73 74 | 53 74 72 69 6e 67 29 20 |>", test|String) |
|00000e20| 3e 20 30 0d 09 09 09 09 | 09 09 09 09 74 65 73 74 |> 0.....|....test|
|00000e30| 53 74 72 69 6e 67 20 3d | 20 73 74 72 69 6e 67 2e |String =| string.|
|00000e40| 64 65 6c 65 74 65 20 28 | 74 65 73 74 53 74 72 69 |delete (|testStri|
|00000e50| 6e 67 2c 20 73 74 72 69 | 6e 67 2e 70 61 74 74 65 |ng, stri|ng.patte|
|00000e60| 72 6e 4d 61 74 63 68 20 | 28 22 2d 2d 3e 22 2c 20 |rnMatch |("-->", |
|00000e70| 74 65 73 74 53 74 72 69 | 6e 67 29 2c 20 73 69 7a |testStri|ng), siz|
|00000e80| 65 4f 66 20 28 74 65 73 | 74 53 74 72 69 6e 67 29 |eOf (tes|tString)|
|00000e90| 29 0d 09 09 09 09 09 09 | 09 09 6d 61 63 72 6f 53 |).......|..macroS|
|00000ea0| 74 72 69 6e 67 20 3d 20 | 6d 61 63 72 6f 53 74 72 |tring = |macroStr|
|00000eb0| 69 6e 67 20 2b 20 74 65 | 73 74 53 74 72 69 6e 67 |ing + te|stString|
|00000ec0| 0d 09 09 09 09 09 09 09 | 09 62 72 65 61 6b 20 c7 |........|.break .|
|00000ed0| 6c 6f 6f 70 20 65 6e 64 | 73 20 77 68 65 6e 20 77 |loop end|s when w|
|00000ee0| 65 20 67 65 74 20 74 6f | 20 61 20 3e 20 6f 75 74 |e get to| a > out|
|00000ef0| 73 69 64 65 20 6f 66 20 | 71 75 6f 74 65 73 0d 09 |side of |quotes..|
|00000f00| 09 09 09 09 09 09 6d 61 | 63 72 6f 53 74 72 69 6e |......ma|croStrin|
|00000f10| 67 20 3d 20 6d 61 63 72 | 6f 53 74 72 69 6e 67 20 |g = macr|oString |
|00000f20| 2b 20 74 65 73 74 53 74 | 72 69 6e 67 20 2b 20 22 |+ testSt|ring + "|
|00000f30| 5c 22 22 0d 09 09 09 09 | 09 09 65 6c 73 65 0d 09 |\"".....|..else..|
|00000f40| 09 09 09 09 09 09 6d 61 | 63 72 6f 53 74 72 69 6e |......ma|croStrin|
|00000f50| 67 20 3d 20 6d 61 63 72 | 6f 53 74 72 69 6e 67 20 |g = macr|oString |
|00000f60| 2b 20 74 65 73 74 53 74 | 72 69 6e 67 20 2b 20 22 |+ testSt|ring + "|
|00000f70| 5c 22 22 0d 09 09 09 09 | 09 69 66 20 73 74 72 69 |\"".....|.if stri|
|00000f80| 6e 67 2e 70 61 74 74 65 | 72 6e 4d 61 74 63 68 20 |ng.patte|rnMatch |
|00000f90| 28 22 28 22 2c 20 6d 61 | 63 72 6f 53 74 72 69 6e |("(", ma|croStrin|
|00000fa0| 67 29 20 3c 20 31 20 c7 | 20 6e 6f 20 70 61 72 65 |g) < 1 .| no pare|
|00000fb0| 6e 74 68 65 73 65 73 2c | 20 6e 6f 74 20 61 20 73 |ntheses,| not a s|
|00000fc0| 63 72 69 70 74 20 0d 09 | 09 09 09 09 09 69 66 20 |cript ..|.....if |
|00000fd0| 64 65 66 69 6e 65 64 20 | 28 6d 61 63 72 6f 53 74 |defined |(macroSt|
|00000fe0| 72 69 6e 67 5e 29 0d 09 | 09 09 09 09 09 09 63 61 |ring^)..|......ca|
|00000ff0| 73 65 20 74 79 70 65 4f | 66 20 28 6d 61 63 72 6f |se typeO|f (macro|
|00001000| 53 74 72 69 6e 67 5e 29 | 0d 09 09 09 09 09 09 09 |String^)|........|
|00001010| 09 73 74 72 69 6e 67 54 | 79 70 65 0d 09 09 09 09 |.stringT|ype.....|
|00001020| 09 09 09 09 09 74 65 78 | 74 20 3d 20 73 74 72 69 |.....tex|t = stri|
|00001030| 6e 67 2e 72 65 70 6c 61 | 63 65 41 6c 6c 20 28 74 |ng.repla|ceAll (t|
|00001040| 65 78 74 2c 20 74 61 67 | 20 2b 20 6d 61 63 72 6f |ext, tag| + macro|
|00001050| 53 74 72 69 6e 67 20 2b | 20 22 2d 2d 3e 22 2c 20 |String +| "-->", |
|00001060| 6d 61 63 72 6f 53 74 72 | 69 6e 67 5e 29 0d 09 09 |macroStr|ing^)...|
|00001070| 09 09 09 09 09 09 77 70 | 54 65 78 74 54 79 70 65 |......wp|TextType|
|00001080| 0d 09 09 09 09 09 09 09 | 09 09 74 65 78 74 20 3d |........|..text =|
|00001090| 20 73 74 72 69 6e 67 2e | 72 65 70 6c 61 63 65 41 | string.|replaceA|
|000010a0| 6c 6c 20 28 74 65 78 74 | 2c 20 74 61 67 20 2b 20 |ll (text|, tag + |
|000010b0| 6d 61 63 72 6f 53 74 72 | 69 6e 67 20 2b 20 22 2d |macroStr|ing + "-|
|000010c0| 2d 3e 22 2c 20 73 74 72 | 69 6e 67 20 28 6d 61 63 |->", str|ing (mac|
|000010d0| 72 6f 53 74 72 69 6e 67 | 5e 29 29 0d 09 09 09 09 |roString|^)).....|
|000010e0| 09 09 65 6c 73 65 0d 09 | 09 09 09 09 09 09 69 66 |..else..|......if|
|000010f0| 20 77 65 62 53 65 72 76 | 65 72 2e 70 72 65 66 65 | webServ|er.prefe|
|00001100| 72 65 6e 63 65 73 2e 72 | 65 6d 6f 76 65 4d 61 63 |rences.r|emoveMac|
|00001110| 72 6f 73 0d 09 09 09 09 | 09 09 09 09 74 65 78 74 |ros.....|....text|
|00001120| 20 3d 20 73 74 72 69 6e | 67 2e 72 65 70 6c 61 63 | = strin|g.replac|
|00001130| 65 41 6c 6c 20 28 74 65 | 78 74 2c 20 74 61 67 20 |eAll (te|xt, tag |
|00001140| 2b 20 6d 61 63 72 6f 53 | 74 72 69 6e 67 20 2b 20 |+ macroS|tring + |
|00001150| 22 2d 2d 3e 22 2c 20 22 | 22 29 0d 09 09 09 09 09 |"-->", "|")......|
|00001160| 65 6c 73 65 20 c7 20 69 | 74 20 68 61 73 20 70 61 |else . i|t has pa|
|00001170| 72 65 6e 74 68 65 73 65 | 73 20 61 6e 64 20 77 69 |renthese|s and wi|
|00001180| 6c 6c 20 62 65 20 64 65 | 61 6c 74 20 77 69 74 68 |ll be de|alt with|
|00001190| 20 6c 69 6b 65 20 61 20 | 73 63 72 69 70 74 0d 09 | like a |script..|
|000011a0| 09 09 09 09 09 74 72 79 | 0d 09 09 09 09 09 09 09 |.....try|........|
|000011b0| 6c 6f 63 61 6c 20 28 74 | 72 61 6e 73 66 6f 72 6d |local (t|ransform|
|000011c0| 20 3d 20 73 74 72 69 6e | 67 20 28 65 76 61 6c 75 | = strin|g (evalu|
|000011d0| 61 74 65 20 28 6d 61 63 | 72 6f 53 74 72 69 6e 67 |ate (mac|roString|
|000011e0| 29 29 29 0d 09 09 09 09 | 09 09 09 74 65 78 74 20 |))).....|...text |
|000011f0| 3d 20 73 74 72 69 6e 67 | 2e 72 65 70 6c 61 63 65 |= string|.replace|
|00001200| 20 28 74 65 78 74 2c 20 | 74 61 67 20 2b 20 6d 61 | (text, |tag + ma|
|00001210| 63 72 6f 53 74 72 69 6e | 67 20 2b 20 22 2d 2d 3e |croStrin|g + "-->|
|00001220| 22 2c 20 74 72 61 6e 73 | 66 6f 72 6d 29 0d 09 09 |", trans|form)...|
|00001230| 09 09 09 09 65 6c 73 65 | 0d 09 09 09 09 09 09 09 |....else|........|
|00001240| 69 66 20 77 65 62 53 65 | 72 76 65 72 2e 70 72 65 |if webSe|rver.pre|
|00001250| 66 65 72 65 6e 63 65 73 | 2e 72 65 6d 6f 76 65 4d |ferences|.removeM|
|00001260| 61 63 72 6f 73 0d 09 09 | 09 09 09 09 09 09 74 65 |acros...|......te|
|00001270| 78 74 20 3d 20 73 74 72 | 69 6e 67 2e 72 65 70 6c |xt = str|ing.repl|
|00001280| 61 63 65 41 6c 6c 20 28 | 74 65 78 74 2c 20 74 61 |aceAll (|text, ta|
|00001290| 67 20 2b 20 6d 61 63 72 | 6f 53 74 72 69 6e 67 20 |g + macr|oString |
|000012a0| 2b 20 22 2d 2d 3e 22 2c | 20 22 22 29 0d 09 09 72 |+ "-->",| "")...r|
|000012b0| 65 74 75 72 6e 20 28 74 | 65 78 74 29 0d 09 65 6c |eturn (t|ext)..el|
|000012c0| 73 65 0d 09 09 72 65 74 | 75 72 6e 20 28 57 65 62 |se...ret|urn (Web|
|000012d0| 53 65 72 76 65 72 2e 65 | 72 72 6f 72 4d 65 73 73 |Server.e|rrorMess|
|000012e0| 61 67 65 20 28 74 72 79 | 45 72 72 6f 72 29 29 0d |age (try|Error)).|
|000012f0| 09 0d 62 75 6e 64 6c 65 | 20 c7 74 65 73 74 69 6e |..bundle| .testin|
|00001300| 67 20 63 6f 64 65 0d 09 | 6c 6f 63 61 6c 20 28 78 |g code..|local (x|
|00001310| 29 0d 09 6e 65 77 20 28 | 74 61 62 6c 65 54 79 70 |)..new (|tableTyp|
|00001320| 65 2c 20 40 78 29 0d 09 | 78 2e 75 73 65 72 61 67 |e, @x)..|x.userag|
|00001330| 65 6e 74 20 3d 20 22 4d | 6f 7a 69 6c 6c 61 22 0d |ent = "M|ozilla".|
|00001340| 09 78 2e 63 6c 69 65 6e | 74 41 64 64 72 65 73 73 |.x.clien|tAddress|
|00001350| 20 3d 20 22 31 39 38 2e | 31 34 38 2e 31 34 39 2e | = "198.|148.149.|
|00001360| 32 30 22 0d 09 78 2e 72 | 65 66 65 72 65 72 20 3d |20"..x.r|eferer =|
|00001370| 20 22 77 77 77 2e 6d 79 | 73 65 72 76 65 72 2e 63 | "www.my|server.c|
|00001380| 6f 6d 2f 68 78 79 2f 66 | 69 6c 65 2e 68 74 6d 6c |om/hxy/f|ile.html|
|00001390| 22 0d 09 78 2e 73 63 72 | 69 70 74 6e 61 6d 65 20 |"..x.scr|iptname |
|000013a0| 3d 20 22 62 6f 62 61 6c | 75 22 0d 09 78 2e 65 72 |= "bobal|u"..x.er|
|000013b0| 72 6f 72 4d 65 73 73 61 | 67 65 20 3d 20 22 54 68 |rorMessa|ge = "Th|
|000013c0| 69 73 20 69 73 20 61 20 | 74 65 73 74 22 0d 09 0d |is is a |test"...|
|000013d0| 09 65 64 69 74 20 28 40 | 73 63 72 61 74 63 68 70 |.edit (@|scratchp|
|000013e0| 61 64 2e 74 65 73 74 29 | 0d 09 20 0d 09 0d 80 00 |ad.test)|.. .....|
|000013f0| 00 00 00 00 80 00 00 00 | 00 00 82 00 00 00 00 00 |........|........|
|00001400| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|00001410| 00 00 80 00 00 00 00 00 | 80 00 00 00 00 00 80 00 |........|........|
|00001420| 00 00 00 00 80 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|00001430| 80 00 00 00 00 00 80 00 | 00 00 00 00 82 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 00 00 00 00 00 00 | 80 00 00 00 00 00 80 00 |........|........|
|00001480| 00 00 00 00 80 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014a0| 00 00 00 00 00 00 00 00 | 80 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|000014c0| 80 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 80 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 80 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|000014f0| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|00001500| 00 00 80 00 00 00 00 00 | 80 00 00 00 00 00 80 00 |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|00001550| 80 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 80 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|00001590| 00 00 80 00 00 00 00 00 | 80 00 00 00 00 00 80 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|000015c0| 00 00 80 00 00 00 00 00 | 84 00 00 00 00 00 80 00 |........|........|
|000015d0| 00 00 00 00 80 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|000015e0| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|000015f0| 00 00 80 00 00 00 00 00 | 84 00 00 00 00 00 80 00 |........|........|
|00001600| 00 00 00 00 80 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|00001610| 00 00 01 00 00 00 15 be | 00 00 14 be 00 00 00 a7 |........|........|
|00001620| 00 c8 fb 5c 13 d6 00 00 | 00 1c 00 7e 00 02 53 54 |...\....|...~..ST|
|00001630| 52 20 00 03 00 1a 73 63 | 70 74 00 00 00 4a 64 61 |R ....sc|pt...Jda|
|00001640| 74 61 00 00 00 56 00 80 | ff ff 00 00 00 00 00 00 |ta...V..|........|
|00001650| 00 00 bf f4 ff ff 00 00 | 00 0a 00 00 00 00 00 82 |........|........|
|00001660| ff ff 00 00 01 0b 00 00 | 00 00 00 7f ff ff 00 00 |........|........|
|00001670| 01 1c 00 00 00 00 00 81 | ff ff 00 00 00 17 00 00 |........|........|
|00001680| 00 00 34 30 00 00 00 00 | 01 22 00 c8 75 5c 28 73 |..40....|."..u\(s|
|00001690| 75 69 74 65 73 2e 77 65 | 62 73 65 72 76 65 72 2e |uites.we|bserver.|
|000016a0| 75 74 69 6c 69 74 69 65 | 73 2e 70 72 6f 63 65 73 |utilitie|s.proces|
|000016b0| 73 4d 61 63 72 6f 73 | |sMacros | |
+--------+-------------------------+-------------------------+--------+--------+